<?php 
switch($adc->getViewObject())
{
	case 'AdEdit':
	case 'AdLatest':
	break;
	case 'AdGallery':
		if($ad->getPower() > 0):  
		?>
		<div class="w3 span4 col-md-4">
			<span class="attribute"><?php echo ucfirst($txt->getWord('horsepower')); ?></span><br />
			<span class="value">
			<?php 
				echo number_format($ad->getPower(), 0, ',', ' ').' ';
				echo ucfirst($txt->getWord('hp'));
			?>
		</span>
		</div>
		<?php 
		endif;
	break;
	default:
		if($ad->getPower() > 0):  
		?>
        <div class="w3 span4 col-md-4">
			<span class="attribute"><?php echo ucfirst($txt->getWord('horsepower')); ?></span><br />
			<b>
			<?php 
				echo number_format($ad->getPower(), 0, ',', ' ').' ';
				echo ucfirst($txt->getWord('hp'));
			?>
			</b>
        </div>
		<?php endif; ?>
		<?php if($ad->getVolume() > 0):  ?>
		<div class="w3 span4 col-md-4">
		<span class="attribute"><?php echo ucfirst($txt->getWord('engine_volume')); ?></span><br />
		<span class="value"><?php echo number_format($ad->getVolume(), 0, ',', ' '); ?> cm&sup3;</span>
		</div>
		<?php endif; ?>
		<div class="clear hidden-phone"></div><br />
		<?php
	break;
}
?>